<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>1101: Tools.FileHelper类参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- 制作者 Doxygen 1.7.2 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="namespaces.html"><span>包</span></a></li>
      <li class="current"><a href="annotated.html"><span>类</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>组合类型列表</span></a></li>
      <li><a href="classes.html"><span>组合类型索引</span></a></li>
      <li><a href="hierarchy.html"><span>类继承关系</span></a></li>
      <li><a href="functions.html"><span>组合类型成员</span></a></li>
    </ul>
  </div>
  <div class="navpath">
    <ul>
      <li><a class="el" href="namespace_tools.html">Tools</a>      </li>
      <li><a class="el" href="class_tools_1_1_file_helper.html">FileHelper</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">公有成员</a> &#124;
<a href="#pub-static-methods">静态公有成员</a> &#124;
<a href="#pro-methods">保护成员</a>  </div>
  <div class="headertitle">
<h1>Tools.FileHelper类参考</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Tools::FileHelper" -->
<p>文件操作类 功能说明:文件操作类 作者:findpace.com 版本:1.0.0  
<a href="#_details">更多...</a></p>

<p><a href="class_tools_1_1_file_helper-members.html">所有成员的列表。</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
公有成员</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a33de32b1bf839dff92260d310177a395"></a><!-- doxytag: member="Tools::FileHelper::Dispose" ref="a33de32b1bf839dff92260d310177a395" args="()" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>Dispose</b> ()</td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
静态公有成员</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_file_helper.html#a5b5f917002a7cf14bc1d39ba744126f3">GetPostfixStr</a> (string filename)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">取后缀名  <a href="#a5b5f917002a7cf14bc1d39ba744126f3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_file_helper.html#ad4d060ad109e993f33f58659ab206e09">WriteFile</a> (string Path, string Strings)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">写文件  <a href="#ad4d060ad109e993f33f58659ab206e09"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_file_helper.html#ae46d8217254deac16d6dbd1251e9d7b0">ReadFile</a> (string Path)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">读文件  <a href="#ae46d8217254deac16d6dbd1251e9d7b0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_file_helper.html#a313ee9392469f3894086f77a67fa5525">FileAdd</a> (string Path, string strings)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">追加文件  <a href="#a313ee9392469f3894086f77a67fa5525"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_file_helper.html#a4de8083bbe6a1f7f759d5b171ad3f0b0">FileCoppy</a> (string orignFile, string NewFile)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">拷贝文件  <a href="#a4de8083bbe6a1f7f759d5b171ad3f0b0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_file_helper.html#a7a6d8d5985d9cc29177dcd960a84160f">FileDel</a> (string Path)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">删除文件  <a href="#a7a6d8d5985d9cc29177dcd960a84160f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_file_helper.html#a2569182dbe2bfd1113342f90fd4c265b">FileMove</a> (string orignFile, string NewFile)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">移动文件  <a href="#a2569182dbe2bfd1113342f90fd4c265b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_file_helper.html#a667ef09d392179e4e30cb2007de2fe8a">FolderCreate</a> (string orignFolder, string NewFloder)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">在当前目录下创建目录  <a href="#a667ef09d392179e4e30cb2007de2fe8a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_file_helper.html#a2c2a84f58c66bc873d371228748c9e54">DeleteFolder</a> (string dir)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">递归删除文件夹目录及文件  <a href="#a2c2a84f58c66bc873d371228748c9e54"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tools_1_1_file_helper.html#a3f04cb3f299e9097212a86b8c34aa397">CopyDir</a> (string srcPath, string aimPath)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">指定文件夹下面的所有内容copy到目标文件夹下面  <a href="#a3f04cb3f299e9097212a86b8c34aa397"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
保护成员</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae9dd7d96c045fc3ef0d9ba9b52519990"></a><!-- doxytag: member="Tools::FileHelper::Dispose" ref="ae9dd7d96c045fc3ef0d9ba9b52519990" args="(bool isDisposing)" -->
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>Dispose</b> (bool isDisposing)</td></tr>
</table>
<hr/><a name="_details"></a><h2>详细描述</h2>
<p>文件操作类 功能说明:文件操作类 作者:findpace.com 版本:1.0.0 </p>
<hr/><h2>成员函数文档</h2>
<a class="anchor" id="a3f04cb3f299e9097212a86b8c34aa397"></a><!-- doxytag: member="Tools::FileHelper::CopyDir" ref="a3f04cb3f299e9097212a86b8c34aa397" args="(string srcPath, string aimPath)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void Tools.FileHelper.CopyDir </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"> <em>srcPath</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"> <em>aimPath</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>指定文件夹下面的所有内容copy到目标文件夹下面 </p>
<dl><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">srcPath</td><td>原始路径</td></tr>
    <tr><td class="paramname">aimPath</td><td>目标文件夹</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a2c2a84f58c66bc873d371228748c9e54"></a><!-- doxytag: member="Tools::FileHelper::DeleteFolder" ref="a2c2a84f58c66bc873d371228748c9e54" args="(string dir)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void Tools.FileHelper.DeleteFolder </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"> <em>dir</em>&#160;)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>递归删除文件夹目录及文件 </p>
<dl><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">dir</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>返回:</b></dt><dd></dd></dl>

</div>
</div>
<a class="anchor" id="a313ee9392469f3894086f77a67fa5525"></a><!-- doxytag: member="Tools::FileHelper::FileAdd" ref="a313ee9392469f3894086f77a67fa5525" args="(string Path, string strings)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void Tools.FileHelper.FileAdd </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"> <em>Path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"> <em>strings</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>追加文件 </p>
<dl><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">Path</td><td>文件路径</td></tr>
    <tr><td class="paramname">strings</td><td>内容</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a4de8083bbe6a1f7f759d5b171ad3f0b0"></a><!-- doxytag: member="Tools::FileHelper::FileCoppy" ref="a4de8083bbe6a1f7f759d5b171ad3f0b0" args="(string orignFile, string NewFile)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void Tools.FileHelper.FileCoppy </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"> <em>orignFile</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"> <em>NewFile</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>拷贝文件 </p>
<dl><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">OrignFile</td><td>原始文件</td></tr>
    <tr><td class="paramname">NewFile</td><td>新文件路径</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a7a6d8d5985d9cc29177dcd960a84160f"></a><!-- doxytag: member="Tools::FileHelper::FileDel" ref="a7a6d8d5985d9cc29177dcd960a84160f" args="(string Path)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void Tools.FileHelper.FileDel </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"> <em>Path</em>&#160;)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>删除文件 </p>
<dl><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">Path</td><td>路径</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a2569182dbe2bfd1113342f90fd4c265b"></a><!-- doxytag: member="Tools::FileHelper::FileMove" ref="a2569182dbe2bfd1113342f90fd4c265b" args="(string orignFile, string NewFile)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void Tools.FileHelper.FileMove </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"> <em>orignFile</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"> <em>NewFile</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>移动文件 </p>
<dl><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">OrignFile</td><td>原始路径</td></tr>
    <tr><td class="paramname">NewFile</td><td>新路径</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a667ef09d392179e4e30cb2007de2fe8a"></a><!-- doxytag: member="Tools::FileHelper::FolderCreate" ref="a667ef09d392179e4e30cb2007de2fe8a" args="(string orignFolder, string NewFloder)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void Tools.FileHelper.FolderCreate </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"> <em>orignFolder</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"> <em>NewFloder</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>在当前目录下创建目录 </p>
<dl><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">OrignFolder</td><td>当前目录</td></tr>
    <tr><td class="paramname">NewFloder</td><td>新目录</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a5b5f917002a7cf14bc1d39ba744126f3"></a><!-- doxytag: member="Tools::FileHelper::GetPostfixStr" ref="a5b5f917002a7cf14bc1d39ba744126f3" args="(string filename)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static string Tools.FileHelper.GetPostfixStr </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"> <em>filename</em>&#160;)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>取后缀名 </p>
<dl><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">filename</td><td>文件名</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>返回:</b></dt><dd>.gif|.html格式</dd></dl>

</div>
</div>
<a class="anchor" id="ae46d8217254deac16d6dbd1251e9d7b0"></a><!-- doxytag: member="Tools::FileHelper::ReadFile" ref="ae46d8217254deac16d6dbd1251e9d7b0" args="(string Path)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static string Tools.FileHelper.ReadFile </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"> <em>Path</em>&#160;)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>读文件 </p>
<dl><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">Path</td><td>文件路径</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>返回:</b></dt><dd></dd></dl>

</div>
</div>
<a class="anchor" id="ad4d060ad109e993f33f58659ab206e09"></a><!-- doxytag: member="Tools::FileHelper::WriteFile" ref="ad4d060ad109e993f33f58659ab206e09" args="(string Path, string Strings)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void Tools.FileHelper.WriteFile </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"> <em>Path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"> <em>Strings</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>写文件 </p>
<dl><dt><b>参数:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">Path</td><td>文件路径</td></tr>
    <tr><td class="paramname">Strings</td><td>文件内容</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>该类的文档由以下文件生成：<ul>
<li>D:/Project/1101/Tools/FileHelper.cs</li>
</ul>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>全部</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>类</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>名字空间</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>函数</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>变量</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>枚举</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>属性</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>Generated at Sun Apr 10 2011 19:47:51 for 1101 by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.2 </small></address>
</body>
</html>
